extends "../afuleer-3/afuleer-3.gd"


var baseId = ""
var upText1 = "命运束缚额外作用于1名敌人"
var upText2 = "北方联合舰队效果+10%"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("本回合内，每{cd}秒，随机使一名敌人阵营变为赤色中轴", "改变时代的炮声", "gbsddps", 5)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "gbsddps":
		if team == 1:
			for i in getAllChas(1):
				if i.get("camp") != "赤色中轴" and not i.isSumm:
					i.camp = "赤色中轴"
					break
		else:
			for i in getAllChas(1):
				if i.get("camp") != "赤色中轴" and not i.hasBuff("b_avrora2"):
					i.addBuff(b_avrora2.new(p3_1))
					break

func upgrade():
	.upgrade()
	if upgraded == 1:
		p2 = 4
	if upgraded == 2:
		p3_1 = 1.35	
		p3_1 = 0.35					